package command;

/**
 * @Author: Doream
 * @Date: 2022/1/29 20:57
 */
public class Client {
    public static void main(String[] args) {
        Order order1 = new Order();
        order1.setTableNumber(1);
        order1.setFoodDir("西红柿鸡蛋面",1);
        order1.setFoodDir("可口可乐",1);

        Order order2 = new Order();
        order2.setTableNumber(2);
        order2.setFoodDir("扬州炒饭",1);
        order2.setFoodDir("水晶小笼包",1);


        SeniorChef seniorChef1 = new SeniorChef("黄大厨1");
        SeniorChef seniorChef2 = new SeniorChef("黄大厨2");

        OrderCommand orderCommand1 = new OrderCommand(seniorChef1,order1);
        OrderCommand orderCommand2 = new OrderCommand(seniorChef2,order2);

        Waiter waiter = new Waiter();
        waiter.setCommand(orderCommand1);
        waiter.setCommand(orderCommand2);

        waiter.orderUp();
    }
}
